package realDeal;

public class Imp {

	static class TestMemory {

		public void details() {

			int kb = 1024;

			// Getting the runtime reference from system
			Runtime runtime = Runtime.getRuntime();

			System.out.println("##### Heap utilization statistics [KB] #####");

			// Print used memory
			System.out.println("Used Memory:"
					+ (runtime.totalMemory() - runtime.freeMemory()) / kb);

			// Print free memory
			System.out.println("Free Memory:" + runtime.freeMemory() / kb);

			// Print total available memory
			System.out.println("Total Memory:" + runtime.totalMemory() / kb);

			// Print Maximum available memory
			System.out.println("Max Memory:" + runtime.maxMemory() / kb);
		}
	}

	public static void main(String[] args) {
		System.out.println("Imp");
		int[] stepWidths = { 10, 5, 4, 3 };
		int[] stepLengths = { 9, 5, 3, 2 };
		int numOfSteps = 4;
		int totalWidth = 0;
		for (int i = 0; i < stepWidths.length; i++) {
			totalWidth += stepWidths[i];
		}

		for (int i = 0; i < maxInc/10000; i++) {
			for (int j = 0; j < 10000; j++) {
				brick.increment(j);
			}
		}
		System.out.println("amountOfBuckets: "
				+ brick.close().getAmountOfBuckets());
		System.out.println("usedBuckets: " + brick.close().getUsedBuckets());
		System.out.println("overflowedBuckets: "
				+ brick.close().getOverflowedBuckets());
		System.out.println(brick.lookup(1));
		TestMemory tm = new TestMemory();
		tm.details();
	}

}
